import { StackNavigator } from 'react-navigation'
import RootTabNav from './rootTabNav'
import styleVars from '../styles/_variables'
import List from '../pages/List'
import GoBack from '../pages/GoBack'

const routeConfigs = {
  RootTabNav: { screen: RootTabNav },
  List: { screen: List },
  GoBack: { screen: GoBack}
}

const StackNavigatorConfigs = {
  initialRouteName: 'RootTabNav',
  navigationOptions: {
    headerTintColor: 'white',
    headerStyle: {
      backgroundColor: styleVars.color.primary,
      elevation: 0
    }
  }
}

const  AppNavigator = StackNavigator(routeConfigs, StackNavigatorConfigs)

export default AppNavigator
